package com.stupidzhe.vbreview.service;

import com.stupidzhe.vbreview.bean.PageBean;
import com.stupidzhe.vbreview.bean.ResultBean;
import com.stupidzhe.vbreview.domain.Class;
import com.stupidzhe.vbreview.domain.UploadProject;

import java.util.List;

public interface UploadProjectService {

    /**
     *
     * @param studentId
     * @param projectId
     * @param projectLocation
     * @return
     */
    ResultBean addUploadProject(Integer studentId, Integer projectId, String projectLocation);

    boolean isMax(Integer projectId, Integer userId);

    boolean isPass(Integer projectId, Integer userId);

    List<UploadProject> getList(Integer projectId, Integer userId);

    PageBean<UploadProject> getUploadProjectByPage(Integer pageNum, Integer userId, String keyword, Integer studentId);

    ResultBean changeResult(Integer userId, Integer uploadId, String result);
}
